/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.com.ly.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 *
 * @author ly
 */
@Service("daoService")
public class DaoService {

    @Async
    public void update() {
        try {
            Thread.sleep(2000);
            // do something  
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("operation complete.");
    }
}